<html>
<body>
Reports <code>return</code> expressions (one-liners or <code>when</code>) that can be replaced with expression body syntax.
<p>Expression body syntax is recommended by the <a href="https://kotlinlang.org/docs/coding-conventions.html#functions">style guide</a>.</p>
<p><b>Convert to expression body</b> quick-fix can be used to amend the code automatically.</p>
<p>Example:</p>
<pre><code>
  fun sign(x: Int): Int {
      return when { // &lt;== can be simplified
          x &lt; 0 -> -1
          x > 0 -> 1
          else -> 0
      }
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  fun sign(x: Int): Int = when {
      x &lt; 0 -> -1
      x > 0 -> 1
      else -> 0
  }
</code></pre>
</body>
</html>
